<!--
档案管理-档案分类修改
 add by yyp 2020-01-10
-->
<template lang="pug">
  kalix-dialog.user-add(bizKey="Class" ref="kalixBizDialog"
  v-bind:formModel.sync="formModel" v-bind:targetURL="targetURL")
    div.el-form(slot="dialogFormSlot" style=" width:60%;margin:auto;")
      el-form-item(label="档案分类" prop="className" label-width="labelWidth" v-bind:rules="rules.className")
        el-input(v-model="formModel.className" style="width:80%")
</template>

<script type="text/ecmascript-6">
  import FormModel from './model'
  import {ClassURL} from '../../config.toml'
  import KalixClansmanUpload from '../../../../../components/fileUpload/upload'
  import {baseURL} from '../../../../../config/global.toml'
  import KalixSelect from '../../../../../components/corelib/components/common/baseSelect'
  export default {
    name: 'classEdit',
    components: {
      KalixSelect,
      KalixClansmanUpload
    },
    data() {
      return {
        action: baseURL + '/camel/rest/upload',
        formModel: Object.assign({}, FormModel),
        rules: {
          className: [{required: true, name: '请输入修改的名称', trigger: 'blur'}]
        },
        targetURL: ClassURL,
        labelWidth: '110px'
      }
    }
  }
</script>

<style scoped lang="stylus" type="text/stylus">
  .el-form
    width 50%
    margin auto
    .radio
      margin-left 150px
      margin-bottom 20px
      .el-radio
        color: #3465cb
        font-weight: bold
        font-size: 14px
  .img-margin
    margin-left 150px
</style>
